import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/conference',
  component: Layout,
  redirect: '/conference/index',
  name: 'breadcrumbExample',
  meta: {
    title: '会议管理',
    icon: 'gear',
  },
  children: [
    {
      path: 'index',
      name: 'Conference',
      component: () => import('@/views/conference/index.vue'),
      meta: {
        sidebar: false,
        title: '会议管理',
        activeMenu: '/conference',
      },
    },
    {
      path: 'edit/:pid',
      name: 'ConferenceEdit',
      props: true,
      component: () => import('@/views/conference/edit.vue'),
      meta: {
        sidebar: false,
        title: '编辑会议',
        activeMenu: '/conference',
      },
    },
    {
      path: 'control/:pid',
      name: 'ConferenceControl',
      props: true,
      component: () => import('@/views/conference/edit.vue'),
      meta: {
        sidebar: false,
        title: '控制会议',
        activeMenu: '/conference',
      },
    },
  ],
}

export default routes
